! Configuration File for keepalived
global_defs {
   router_id {{ lvs_name }}                    
}

vrrp_script check {
   script "/etc/keepalived/check_haproxy.sh"
   interval 1
}

vrrp_instance VI_1 {
    state {{ state }}
    interface ens33
    virtual_router_id 51
    priority {{ priority }}
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        192.168.88.100
    }
    track_script {
       check
    }
}
